package com.chenjie;

import java.lang.reflect.InvocationTargetException;
import java.net.MalformedURLException;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import com.huawei.common.util.DirClassPathLoader;

@SpringBootApplication
@EnableEurekaClient
public class RuleEngineApplication {
	public static void main(String[] args) {
		initDynamicDir();
		SpringApplication.run(RuleEngineApplication.class, args);
	}

	private static void initDynamicDir() {
		try {
			DirClassPathLoader.addDirClassPath("D:\\JavaTest");
		} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException
				| MalformedURLException e) {
			e.printStackTrace();
		}
	}
}
